package com.gxc.healthfood.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 用户身体指标实体类
 * @TableName user_body_metrics
 */
@TableName(value ="user_body_metrics")
@Data
public class UserBodyMetrics implements Serializable {
    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 身高(cm)
     */
    @TableField(value = "height")
    private BigDecimal height;

    /**
     * 体重(kg)
     */
    @TableField(value = "weight")
    private BigDecimal weight;

    /**
     * 年龄
     */
    @TableField(value = "age")
    private Integer age;

    /**
     * 性别
     */
    @TableField(value = "gender")
    private String gender;

    /**
     * 活动水平
     */
    @TableField(value = "activity_level")
    private String activityLevel;

    /**
     * 健身目标
     */
    @TableField(value = "goal")
    private String goal;

    /**
     * 基础代谢率
     */
    @TableField(value = "bmr")
    private BigDecimal bmr;

    /**
     * 每日总能量消耗
     */
    @TableField(value = "tdee")
    private BigDecimal tdee;

    /**
     * 记录日期
     */
    @TableField(value = "recorded_date")
    private Date recordedDate;

    /**
     * 创建时间
     */
    @TableField(value = "created_at")
    private Date createdAt;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}